#include"UdpServe.hpp"
#include<memory>
std::string defaultfunc(std::string messges)
{
    return messges;
}





int main(int argc,char*argv[])
{
    if(argc!=2)
    {
        std::cerr << "Usage: " << argv[0] << " port" << std::endl;
        return 1;
    }
    ENABLE_CONSOLE_LOG_STRATEGY();
    uint16_t port=std::stoi(argv[1]);
    std::unique_ptr<UdpServe> udpserveptr=std::make_unique<UdpServe>(port,defaultfunc);
    udpserveptr->Init();
    udpserveptr->Start();
    return 0;
}